class Demo:
    def __call__(self, *args, **kwargs):
        # __call__是用来实现类的对象，调用的行为
        print("-----demo----call")
    pass
def func(self):
    print("-----func----")


if __name__ == '__main__':
    c=Demo()
    print(callable(func))
    print(callable(c))